// 平台属性管理模块请求接口文件
import request from "@/utils/request"
// 三级联动一级分类接口
export const reqCategory1List = () => request({
        url: "/admin/product/getCategory1",
        method: "get"
    })
    // 三级联动二级分类接口
export const reqCategory2List = (category1id) => request({
        url: `/admin/product/getCategory2/${category1id}`,
        method: "get"
    })
    // 三级联动三级分类接口
export const reqCategory3List = (category2id) => request({
        url: `/admin/product/getCategory3/${category2id}`,
        method: "get"
    })
    // 获得商品属性接口
export const reqAttrList = (category1Id, category2Id, category3Id) => request({
        url: `/admin/product/attrInfoList/${category1Id}/${category2Id}/${category3Id}`,
        method: "post"
    })
    // 添加商品属性和属性值
export const reqAddOrUpdateAttr = (data) => request({
    url: "/admin/product/saveAttrInfo",
    method: "get",
    data
})